package com.langerra.shared.channel;

import java.io.Serializable;

public interface ChannelServicePool<T extends Serializable> {

	/**
	 * wrap a {@code ChannelMessage} wrapper for the given parameter
	 * 
	 * @param the
	 *          value to wrap
	 * @return the wrapped value as a {@code ChannelMessage}
	 * */
	ChannelMessage<T> getMessage(
			T value);

	/**
	 * @param the
	 *          key of the message to lookup
	 * @return message for the given key, null if not available
	 * */
	T get(
			Long key);
}
